//go:build !integration

package test

import (
	"testing"
	generator_test "v8s-controller/test/generator"
)

func TestGenerator(t *testing.T) {
	// Act
	suits := []generator_test.GeneratorSuit{
		{Folder: "load-balancer-several-service"},
		{Folder: "load-balancer-single-service"},
		{Folder: "minimal"},
		{Folder: "minimal-with-image-pull-secrets", ImagePullSecrets: []string{"generator/minimal-with-image-pull-secrets/image-pull-secret.txt"}},
		{Folder: "testcases/emptyDir"},
		{Folder: "testcases/volumeClaim"},
		{Folder: "resources--limits-absent"},
		{Folder: "resources--reservations-absent"},
		{Folder: "resources--all-present"},
		{Folder: "resources--limits-cpu-absent"},
		{Folder: "resources--reservations-cpu-absent"},
		{Folder: "resources--limits-memory-absent"},
		{Folder: "resources--reservations-memory-absent"},
		{Folder: "environment-vars--alphabetically"},
		{Folder: "environment-vars--not-alphabetically"},
	}

	for _, current := range suits {
		t.Run(current.Folder, func(t *testing.T) {
			generator_test.Test(t, current)
		})
	}
}
